#!/bin/sh

MY_DIRECTORY="${0%/*}" # cut off the script name
MY_DIRECTORY="${MY_DIRECTORY%/*}" # cut off MacOS
MY_DIRECTORY="${MY_DIRECTORY%/*}" # cut off Contents

#export DYLD_LIBRARY_PATH="./"
#export PANGO_RC_FILE="./"
#export GDK_PIXBUF_MODULE_FILE="./"
#export FONTCONFIG_FILE="./"

cd "$MY_DIRECTORY/Contents/MacOS/install"
if [ -x /usr/bin/open-x11 ]; then
	/usr/bin/open-x11 ./radiant.ub "$@" &
else
	./radiant.ub "$@" &
fi
